package com.nf.xiaomi.dao;

import com.nf.xiaomi.entity.UsersEntity;

import java.util.List;

public interface UserDao {
    Integer insert(UsersEntity users);

    Integer update(UsersEntity users);

    Integer deleteByID(Long account);

    Long login(Long account, String password);

    Long register(Long phone);

    List<UsersEntity> getAll();

    List<UsersEntity> getAll(Long account);

    List<UsersEntity> getAll(String name);

    Integer getAllID(Long account);

    String sendSms(Long phone);
}
